package org.wyn.mongodb.bean;

import org.bson.types.ObjectId;
import org.wyn.common.Table;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;
import com.google.code.morphia.annotations.Indexed;

/**
 * 状态实体类
 * @author wyn
 *
 */
@Entity(value = Table.CollectionName.USER_STATUS, noClassnameStored = true)
public class UserStatus {
	@Id
	private ObjectId id;
	/**用户账号*/
	@Indexed
	private String userName;
	private String realName;
	/**头像*/
	private ObjectId portrait = new ObjectId();
	private String content;
	/**发布状态的时间*/
	@Indexed
	private long createTime;
	public ObjectId getId() {
		return id;
	}
	public void setId(ObjectId id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public long getCreateTime() {
		return createTime;
	}
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public ObjectId getPortrait() {
		return portrait;
	}
	public void setPortrait(ObjectId portrait) {
		this.portrait = portrait;
	}
}
